package com.ajl.wx.beans.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author HouXinLin
 * @since 2020-09-24
 */
@TableName("tb_video_comment")
public class VideoCommentPO extends Model<VideoCommentPO> {

    private static final long serialVersionUID = 1L;

    @TableId("comment_id")
    private int commentId;

    /**
     * 视频Id
     */
    @TableField("video_id")
    private Integer videoId;

    /**
     * 内容
     */
    @TableField("comment_content")
    private String commentContent;

    /**
     * 微信Id
     */
    @TableField("wechat_id")
    private String wechatId;

    /**
     * 时间
     */
    @TableField("comment_timer")
    private LocalDateTime commentTimer;

    /**
     * 删除状态
     */
    @TableField("delete_flag")
    private String deleteFlag;


    public static final String COMMENT_ID = "comment_id";

    public static final String VIDEO_ID = "video_id";

    public static final String COMMENT_CONTENT = "comment_content";

    public static final String WECHAT_ID = "wechat_id";

    public static final String COMMENT_TIMER = "comment_timer";

    public static final String DELETE_FLAG = "delete_flag";

    @Override
    protected Serializable pkVal() {
        return this.commentId;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public int getCommentId() {
        return commentId;
    }

    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }

    public Integer getVideoId() {
        return videoId;
    }

    public void setVideoId(Integer videoId) {
        this.videoId = videoId;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public String getWechatId() {
        return wechatId;
    }

    public void setWechatId(String wechatId) {
        this.wechatId = wechatId;
    }

    public LocalDateTime getCommentTimer() {
        return commentTimer;
    }

    public void setCommentTimer(LocalDateTime commentTimer) {
        this.commentTimer = commentTimer;
    }

    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    @Override
    public String toString() {
        return "VideoCommentPO{" +
                "commentId=" + commentId +
                ", videoId=" + videoId +
                ", commentContent='" + commentContent + '\'' +
                ", wechatId='" + wechatId + '\'' +
                ", commentTimer=" + commentTimer +
                ", deleteFlag='" + deleteFlag + '\'' +
                '}';
    }
}
